package com.tc.activiti.web;

import com.tc.biz.entity.DrainagePipeMaintainence;
import com.tc.biz.mapper.DrainagePipeMaintainenceMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 登录页面
 *
 * @author HenryYan
 */
@Controller
public class LoginController {

    @RequestMapping(value = "/login")
    public String login() {
        return "login";
    }

    @Autowired
    private DrainagePipeMaintainenceMapper maintainenceMapper;

    @RequestMapping("/findById")
    @ResponseBody
    public DrainagePipeMaintainence findById() {
        return maintainenceMapper.selectByPrimaryKey("641999157329920000");
    }
}
